home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’93
/
Wavy
/
Instructions.h
next >
Wrap
Text File
|
1995-09-10
|
2KB
|
61 lines
// Some useful 68020 instructions
//
// 207C 1234 5678 MOVEA.L #$12345678,A0
// 227C 1234 5678 MOVEA.L #$12345678,A1
// 247C 1234 5678 MOVEA.L #$12345678,A2
// 267C 1234 5678 MOVEA.L #$12345678,A3
// 287C 1234 5678 MOVEA.L #$12345678,A4
// 2A7C 1234 5678 MOVEA.L #$12345678,A5
// 115D 1234 MOVE.B (A5)+,$1234(A0)
// 135D 1234 MOVE.B (A5)+,$1234(A1)
// 155D 1234 MOVE.B (A5)+,$1234(A2)
// 175D 1234 MOVE.B (A5)+,$1234(A3)
// 195D 1234 MOVE.B (A5)+,$1234(A4)
// 116D 0006 1234 MOVE.B $0006(A5),$1234(A0)
// 136D 0006 1234 MOVE.B $0006(A5),$1234(A1)
// 156D 0006 1234 MOVE.B $0006(A5),$1234(A2)
// 176D 0006 1234 MOVE.B $0006(A5),$1234(A3)
// 196D 0006 1234 MOVE.B $0006(A5),$1234(A4)
// 203C 1234 5678 MOVE.L $12345678,D0
// 11AD 0006 0800 MOVE.B $0006(A5),$00(A0,D0.L)
// DAFC 0040 ADDA.W #$0040,A5
// 48E7 00FC MOVEM.L A0-A5,-(A7)
// 4CDF 3F00 MOVEM.L (A7)+,A0-A5
// 4E75 RTS
#define movea_to_a0 0x207c
#define movea_to_a1 0x227c
#define movea_to_a2 0x247c
#define movea_to_a3 0x267c
#define movea_to_a4 0x287c
#define movea_to_a5 0x2a7c
#define move_b_a5plus_a0 0x115d
#define move_b_a5plus_a1 0x135d
#define move_b_a5plus_a2 0x155d
#define move_b_a5plus_a3 0x175d
#define move_b_a5plus_a4 0x195d
#define move_b_off_a5_to_a0 0x116d
#define move_b_off_a5_to_a1 0x136d
#define move_b_off_a5_to_a2 0x156d
#define move_b_off_a5_to_a3 0x176d
#define move_b_off_a5_to_a4 0x196d
#define immediate_long_load_d0 0x203c
#define move_byte_da5_a0_d0_L 0x11ad
#define no_constant_for_load 0x0800
#define adda_w_const_a5 0xDAFC
#define movem_push_a0_a5 0x48e700fcL
#define movem_pop_a0_a5 0x4cdf3f00L
#define rts 0x4e75